/*Nama File : FileExp.cpp
  Pembuat	: Ni Made Satvika Iswari / 23512077
  Tanggal 	: 2 November 2012
  Deskripsi	: Definisi Class Command Executor Exception
  */
  
#include "FileExp.h"

int FileExp::num_ex = 2;
string FileExp::msg [] = {
	"Gagal membuka file.",
	"Format nama file salah."
};

FileExp::FileExp(): msg_id(0){

}

FileExp::FileExp(int x):msg_id(x){
	num_ex++;
}

FileExp::FileExp(const FileExp& cExp): msg_id(cExp.msg_id){
	
}

/*FileExp& FileExp::operator=(const FileExp& cExp){
	msg_id = cExp.msg_id;
	return *this;
}*/

FileExp::~FileExp(){

}

void FileExp::DisplayMsg() const {
	cerr << msg[msg_id] << endl;
}

int FileExp::GetNumException(){
	return num_ex;
}
